package org.csu.springjpetstore.persistence;


import org.apache.ibatis.annotations.Param;
import org.csu.springjpetstore.domain.Order;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface OrderDAO {

    List<Order> getOrdersByUsername(String username);

    Order getOrderByOrderId(int orderId);


    void insertOrder(Order order);

    void insertOrderStatus(@Param("orderId") int orderId,
                           @Param("LINENUM") int LINENUM,
                           @Param("TIMESTAMP") Date TIMESTAMP,
                           @Param("status") String status);


}
